﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class Student_Show : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        //StudentShowList.SelectedIndex = Eval("sex").Equals("男")?0:1;
        //StudentShowList.SelectedValue="<%# DataBinder.Eval(Container.DataItem,'sex')%>";

        string id = Request.QueryString["id"];
        if (id == null || id.Trim().Equals(""))
        {
            msg.Text = "没有相关的数据";
            msg.Visible = true;
            btnSubmit.Visible = false;

        }
        else
        {
            id = id.ToUpper();
            SqlDataSource1.SelectCommand = "SELECT * FROM [t_student] where id = '" + id + "'";
        }

        // Label myLabel = (Label)StudentShowList.FindControl("idLabel");
        // msg.Text = myLabel.Text;
    }
    protected void Button1_Click(object sender, EventArgs e)
    {
       
    }
}
